﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditRole.aspx.cs" Inherits="YunCMS.Web.Admin.User.EditRole" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../../Styles/reset.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/jquery-ui-1.8.13.custom.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/site.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../../Scripts/messages_zh.js" type="text/javascript"></script>
    <script src="../../Scripts/init-edit.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#selectAllCB").click(function () {
                var chxs = $(".yc-ul-list :checkbox");
                if ($(this).is(":checked")) {
                    chxs.attr("checked", true);
                }
                else {
                    chxs.attr("checked", false);
                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="editarea">
        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">基本信息</a></li>
            </ul>
            <div id="tabs-1">
                <table width="100%" class="edittable">
                    <colgroup>
                        <col width="10%" class="ui-state-default" />
                    </colgroup>
                    <tbody>
                        <tr>
                            <th>
                                名称：
                            </th>
                            <td>
                                <asp:TextBox ID="txtRoleName" runat="server" CssClass="yc-textbox normal required"
                                    minlength="2" MaxLength="100"></asp:TextBox><label>*</label>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                类型：
                            </th>
                            <td>
                                <asp:DropDownList ID="ddlRoleType" runat="server" CssClass="yc-dropdown required">
                                    <asp:ListItem Value="1" Text="超级管理员"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="管理员" Selected="True"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                权限：<br />("超级管理员"拥有所有权限)
                            </th>
                            <td>
                                <label style="margin: 0;">
                                    <input type="checkbox" class="cball" id="selectAllCB" /><b>全选</b></label>
                            </td>
                        </tr>
                        <tr>
                            <th>
                            </th>
                            <td class="yc-ul-list">
                                <ul>
                                    <asp:Repeater ID="rptList1" runat="server">
                                        <ItemTemplate>
                                            <li>
                                                <asp:HiddenField ID="hidId" Value='<%#Eval("ID")%>' runat="server" />
                                                <asp:HiddenField ID="hidName" Value='<%#Eval("ActionValue")%>' runat="server" />
                                                <label>
                                                    <input type="checkbox" runat="server" id="cblNavName" value='<%#Eval("ActionValue")%>'
                                                        class="config" /><%#Eval("Name")%></label>
                                            </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="foot-bar" style='text-align: center;'>
            <asp:LinkButton ID="saveBt" runat="server" Text="Insert" OnClick="saveBt_Click"></asp:LinkButton>
            <button id="cancelBt" type="reset">
                重置</button>
        </div>
    </div>
    </form>
</body>
</html>
